<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/index.css" rel="stylesheet" type="text/css" />
<script src="../../../js/prototype.js" type="text/javascript"></script>
<script src="../../../js/engine.js" type="text/javascript"></script>
<script src="../../../js/public.js" type="text/javascript"></script>
<title>产品信息录入</title>
</head>
<body><form id="productForm" name="productForm" action='product.do?cmd=#if(!$!obj.id)save#end#if($!obj.id)update#end' method="post" enctype="multipart/form-data">
<div class="content-right">
  <div class="content-r-pic">
    <div style="margin:5px auto auto 12px;"><img src="../../../images/product.gif" width="138" height="17" /></div>
  </div>
  
    <div class="content-text">
      <div class="square-order">
        <div style="border:1px solid #cecece;">
          <table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr bgcolor="#FFFFFF">
              <td>&nbsp;</td>
            </tr>
          </table>
          <input type="hidden" name="id"  value="$!obj.id">
          <input type="hidden" name="org.apache.struts.taglib.html.TOKEN"  value="$!{token}">
          <table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr  bgcolor="#FFFFFF">
              <td width="13%" height="30" align="center">产品编号</td>
              <td width="36%"><input name="sn" id="sn" type="text" value="$!obj.sn" /></td>
              <td width="22%" align="center">产品名称</td>
              <td width="29%"><input name="name" id="name" type="text" value="$!obj.name" /></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td width="13%" height="30" align="center">名称缩写</td>
              <td width="36%"><input name="spell" id="spell" type="text" value="$!obj.spell" /></td>
              <td align="center">产品类别</td>
              <td><select name="dirId" id="dirId" style="width:157px">
                  <option value="">请选择...</option>
                  
              	#foreach($info in $!productDir)
                  
                  <option value="$!info.id" #if($!obj.dir.id==$info.id)selected="selected" #end>$!info.name</option>
                  
                #end
                
                </select></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td width="13%" height="30" align="center">成本价格</td>
              <td width="36%"><input name="costPrice" id="costPrice" type="text" value="$!obj.costPrice" /></td>
              <td align="center">产品状态</td>
              <td><select name="status" id="status" style="width:157px">
                                <option value="1" #if($!obj.status==1)selected=&quot;selected&quot; #end>正常</option>
                  <option value="0" #if($!obj.status==0)selected=&quot;selected&quot; #end>锁定</option>
                  <option value="-1" #if($!obj.status==-1)selected=&quot;selected&quot; #end>回收站</option>
              </select></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td height="30" align="center">销售价格</td>
              <td><input name="salePrice" id="salePrice" type="text" value="$!obj.salePrice" /></td>
              <td align="center">产品尺码</td>
              <td><input name="productSize" type="text" class="form_textmenu" id="productSize"   onclick="ItcastUtil.choiceDictionary('productSize','产品尺码',function(result){$('productSize').value=result.name;$('sizeId').value=result.id;});" value="$!obj.size.name" readonly="readonly" />
                <input type="hidden" name="sizeId" id="sizeId" value="$!obj.size.id" /></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td width="13%" height="30" align="center">产品图片</td>
              <td width="36%"><input name="pic" id="pic" type="file" value="$!obj.pic" />#if($!obj.pic)<a href="$!obj.pic" target="_blank">查看产品图</a>#end</td>
              <td align="center">产品色彩</td>
              <td><input name="color" type="text" class="form_textmenu" id="color"   onClick="ItcastUtil.choiceDictionary('productColor','产品色彩',function(result){$('color').value=result.name;$('colorId').value=result.id;});" value="$!obj.color.name" readonly />
                <input type="hidden" name="colorId" id="colorId" value="$!obj.color.id"></td>
            </tr>
            <tr  bgcolor="#FFFFFF">
              <td align="center">产品简介</td>
              <td colspan="3"><textarea name="intro" cols="75" rows="6" id="intro">$!obj.intro</textarea></td>
            </tr>
          </table>
        </div>
        <div class="order-botton">
          <div style="margin:1px auto auto 1px;">
            <table width="100%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><input type="image" src="../../../images/order_tuo.gif" border="0" /></td>
                <td>&nbsp;</td>
                <td><input type="image" src="../../../images/order_tuo.gif" border="0" onclick="this.form.reset();return false;" /></td>
                <td>&nbsp;</td>
                <td><input type="image" src="../../../images/order_tuo.gif" border="0" onclick="location.href='?cmd=list';return false;" /></td>
              </tr>
            </table>
          </div>
        </div>
      </div>
    </div>
  <div class="content-bbg"><img src="../../../images/content_bbg.jpg" /></div>
</div>  </form>
</body>
</html>
